﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Qianwei.Web.Admins
{
    public partial class Main : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                string menuvalue = "0";
                if (Request.Cookies["hfmenu"] == null)
                {
                    HttpCookie menu = new HttpCookie("hfmenu", menuvalue);
                    menu.Path = "/";
                    Response.AppendCookie(menu);
                }
                else
                {
                    Request.Cookies["hfmenu"].Value = menuvalue;
                }
                if (Request.Cookies["hfmenuitem"] == null)
                {
                    HttpCookie menuitem = new HttpCookie("hfmenuitem", menuvalue);
                    menuitem.Path = "/";
                    Response.AppendCookie(menuitem);
                }
                else
                {
                    Request.Cookies["hfmenuitem"].Value = menuvalue;
                }
            }
        }
    }
}